/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2016 All Rights Reserved.
 */
package com.alipay.study.comsumer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @author wb-qlj205528
 * @version $Id: ConfigController.java, v 0.1 2016年11月17日 下午3:01:41 wb-qlj205528 Exp $
 */
@RestController
public class ConfigController {

    /**
     * 
     */
    @Value("${from}")
    private String value;

    @RequestMapping(value = "/config", method = { RequestMethod.GET, RequestMethod.POST })
    public String getConfig() {
        return this.value;
    }
}
